home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / xml4j.jar / org / xml / sax / SAXException.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-08-30  |  763 b   |  34 lines

  1. package org.xml.sax;
  2.  
  3. public class SAXException extends Exception {
  4.    private String message;
  5.    private Exception exception;
  6.  
  7.    public SAXException(String var1) {
  8.       this.message = var1;
  9.       this.exception = null;
  10.    }
  11.  
  12.    public SAXException(Exception var1) {
  13.       this.message = null;
  14.       this.exception = var1;
  15.    }
  16.  
  17.    public SAXException(String var1, Exception var2) {
  18.       this.message = var1;
  19.       this.exception = var2;
  20.    }
  21.  
  22.    public String getMessage() {
  23.       return this.message == null && this.exception != null ? this.exception.getMessage() : this.message;
  24.    }
  25.  
  26.    public Exception getException() {
  27.       return this.exception;
  28.    }
  29.  
  30.    public String toString() {
  31.       return this.getMessage();
  32.    }
  33. }
  34.